gdkwindow: Store children list nodes in GdkWindow structure
authorAlexander Larsson <alexl@redhat.com>
Thu, 10 Sep 2015 10:57:16 +0000 (12:57 +0200)
committerAlexander Larsson <alexl@redhat.com>
Sun, 13 Sep 2015 19:48:55 +0000 (21:48 +0200)
commitea294fd92c86aa28fd40b1c5c14f55eea6da5f6b
tree6e5cc4e3ebfa089a67fa499c91fcc15448edd5e3
parent0175cd8ae7ee66dda18ec09194137bf81f6f72bc
gdkwindow: Store children list nodes in GdkWindow structure

This avoids a bunch of allocations, and additionally it has better
cache behaviour, as we don't follow pointers to the separate GList
node memory areas during traversal.

From Christian Hergert:

  This machine is a Retina mac book pro so I've been working on getting
  GtkTextView (GtkPixelCache) up to our performance level on
  X11/Wayland. I'm seeing a jump from about 43 FPS to about 50 FPS.

https://bugzilla.gnome.org/show_bug.cgi?id=754687
gdk/gdkinternals.h
gdk/gdkwindow.c